package com.beans;

import creator.ui.graphics.Magicanvas;
import creator.ui.graphics.bean.Bean;
import java.awt.Image;
import java.util.ArrayList;

public class PipeBean extends Bean {

  private ArrayList<Image> pipes;
  private int pipeH;
  private int pipeW;

  public void initBean(Magicanvas cvs) {
    this.pipes = new ArrayList();
    this.pipes.add(getImage("/res/img/pipes/pipe_up.gif"));
    this.pipes.add(getImage("/res/img/pipes/pipe_down.gif"));
    this.pipes.add(getImage("/res/img/pipes/pipe_up_red.gif"));

    trackerImages(this.pipes, cvs);

    this.pipeW = ((Image) this.pipes.get(0)).getWidth(cvs);
    this.pipeH = ((Image) this.pipes.get(0)).getHeight(cvs);
  }

  public ArrayList<Image> getPipes() {
    return this.pipes;
  }

  public void setPipes(ArrayList<Image> pipes) {
    this.pipes = pipes;
  }

  public int getPipeH() {
    return this.pipeH;
  }

  public void setPipeH(int pipeH) {
    this.pipeH = pipeH;
  }

  public int getPipeW() {
    return this.pipeW;
  }

  public void setPipeW(int pipeW) {
    this.pipeW = pipeW;
  }
}
